Release 10.1A: OpenEdge Development:
Messaging and ESB
Publishing messages to a topic
In the Pub/Sub domain, applications publish messages to topics. To publish a message with Java–JMS, an application obtains a handle to a Topic object and creates a Publisher object. It then uses the Publisher Object to publish messages. Publishing a message to a topic with the 4GL-JMS API involves these general steps:
- The application publishes messages through the publish procedure of the
pubsubsession.porjmssession.pobject.- The application specifies the topic name as an
INPUTparameter of typeCHARACTER.The application can set other sending parameters (such as
Note: If a message being published to a topic has a delivery mode ofpersistency,timeToLive, andpriority) in the Session object as a default for all the messages it sends, or it can set these parameters at each publish procedure call.DISCARDABLEand the destination topic queue is full, the message is automatically discarded.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |